#include "e2d/imgui/impl/FinalEditor.h"

bool e2d::FinalEditor::TryTreeEditEntity(e2d::Entity* entity)
{
	bool flag{ 0 };
#ifdef E2D_BUILD_TRANS
	flag |= m_TransEditor.TryTreeEditEntity(entity);
#endif
#ifdef E2D_BUILD_RENDER
	flag |= m_RenderEditor.TryTreeEditEntity(entity);
#endif
#ifdef E2D_BUILD_AUDIO
	flag |= m_AudioEditor.TryTreeEditEntity(entity);
#endif
#ifdef E2D_BUILD_PHYSICS
	flag |= m_PhysicsEditor.TryTreeEditEntity(entity);
#endif
#ifdef E2D_BUILD_FUI
	flag |= m_FuiEditor.TryTreeEditEntity(entity);
#endif

	flag |= m_ImplEditor.TryTreeEditEntity(entity);
	return flag;
}

